package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@JsonIgnoreProperties("handler")
public class Address {

    public static final int STATE_CLOSE = 0; // 默认不启用该地址

    public static final int STATE_OPEN = 1; // 启用,一个人只有一条启用地址

    private Long id;

    private User user;

    private String address;

    private String tel;

    private Integer state = STATE_CLOSE;

    // 拼接页面数据格式
    public String getUserInfoDisplay(){
        return "收货人: ,"+this.tel;
    }

    public String getAdressInfo(){
        return "收货地址: "+ this.address;
    }


}